# _*_ coding: utf-8 _*_
from odoo import models, fields


class PurchaseRequisitionLine(models.Model):
    _inherit = "purchase.requisition.line"

    department_id = fields.Many2one("hr.department", string="Department",
                                    related="product_id.categ_id.department_id",
                                    readonly=True)
    user_id = fields.Many2one("res.users", string="User")
